package com.lizhenhua.api.feignClient;

import com.lizhenhua.api.follback.OrderItemAddFollBack;
import com.lizhenhua.fmmall.beans.ShoppingCartVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "orderitem-add",fallback = OrderItemAddFollBack.class)
public interface OrderItemAddFeignClient {
    @PostMapping("/order-item/save")
    public int addOrderItem(@RequestBody List<ShoppingCartVo> list, @RequestParam("orderId") String orderId);
}
